TARGET	:=caffe_test

CAFFE_DIR	:=/home/kellygod/caffe

CAFFE_INCLUDE	:=$(CAFFE_DIR)/include

CAFFE_BUILD	:=$(CAFFE_DIR)/build

CAFFE_BUILD_LIB	:= $(CAFFE_BUILD)/lib

CAFFE_BUILD_SRC	:= $(CAFFE_BUILD)/src

CUDA_PATH :=/usr/local/cuda-8.0

CUDA_INCLUDE:=$(CUDA_PATH)/include

CUDA_LIB :=$(CUDA_PATH)/lib64

USR_INCLUDE :=/usr/include

GLOG_INCLUDE :=$(USR_INCLUDE)/glog

LFLAGS	:= -pthread -lnsl -lX11

LFLAGS	+= -lcaffe -lgflags -lprotobuf \
	-lboost_system -lboost_filesystem \
	-lboost_thread -lboost_coroutine -lboost_context -lboost_regex \
	-lm -lleveldb -lsnappy -llmdb -lglog \
	-lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs -lopencv_objdetect -lopencv_flann \
	-lstdc++ -lcblas -latlas


LFLAGS += -Wl,-rpath=$(CAFFE_BUILD_LIB)

CFLAGS := -g -I . -I $(CAFFE_INCLUDE) -I $(CAFFE_DIR)/src \
	-I $(CAFFE_BUILD_SRC) -I ./ \
	-Wall -DUSE_OPENCV -DONLY_CPU
CFLAGS += -I $(GLOG_INCLUDE) -I $(USR_INCLUDE) -I$(CUDA_INCLUDE)
CC := g++  

SRC += src/classification.cpp  
  
$(TARGET):$(SRC)  
	$(CC) -g -o $(TARGET) -O0 -std=c++11 $(SRC) $(CFLAGS) $(LFLAGS) -L$(CAFFE_BUILD_LIB) -Wno-sign-compare  
  
clean :  
	@rm -f $(TARGET)  